package cn.xfdzx.android.apps.shop.adapter;

import android.content.Context;
import android.graphics.Paint;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

import java.util.ArrayList;

import cn.xfdzx.android.apps.shop.R;
import cn.xfdzx.android.apps.shop.bean.HomeClassBeen;

/**
 * @author gzk
 * @date 2020/3/28 0028
 * description：商品详情里劵的布局
 */
public class GoodsDetailsGVAdapter extends BaseAdapter {

    private Context mContext;
    private ArrayList<String> mList;

    private TextView tvNowPrice;
    private TextView tvOldPrice;

    public GoodsDetailsGVAdapter(Context mContext, ArrayList<String> mList) {
        this.mContext = mContext;
        this.mList = mList;
    }

    @Override
    public int getCount() {
        return 3;
    }

    @Override
    public Object getItem(int i) {
        return i;
    }

    @Override
    public long getItemId(int i) {
        return 0;
    }

    @Override
    public View getView(int i, View view, ViewGroup viewGroup) {
        view = View.inflate(mContext, R.layout.item_goods_details_gv_juan, null);

//        tvNowPrice = view.findViewById(R.id.tv_now_price);
//        tvOldPrice = view.findViewById(R.id.tv_old_price);
//        tvOldPrice.getPaint().setFlags(Paint.STRIKE_THRU_TEXT_FLAG | Paint.ANTI_ALIAS_FLAG);
//        tvNowPrice.setText("¥2.5");
//        tvOldPrice.setText("¥2.5");
        return view;
    }
}
